package yonghu;

import chaozuo.*;

import java.time.chrono.ChronoZonedDateTime;
import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 18128
 * Date: 2023-09-24
 * Time: 12:26
 */
//借书人
public class jsr extends user{
    public jsr(String name)
    {
        super(name);//帮助父类构造
         czjk=new CZJK[]{new yuichu(),new chazhao(),new jie(),new huan(),new xianshi()};
    }


    //重写父类xxx方法
    public int xxx()
    {
        System.out.println("欢迎"+getName()+"来到图书管理小练习");
        System.out.println("菜单");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("4.显示图书");
        System.out.println("0.退出系统");
        System.out.println("请选择");
        Scanner scan=new Scanner(System.in);
        int i= scan.nextInt();
        return i;
    }
}
